﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HsTec.DigitalPlatform.DataAccess;

namespace HsTec.DigitalPlatform.Business
{
    public class FileInfoManager
    {
        FileInfoRepository fileinforepository = new FileInfoRepository();

        public void Add(FileInfo fileinfo)
        {
            fileinforepository.Add(fileinfo);
        }

        public void Delete(FileInfo fileinfo)
        {
            fileinforepository.Delete(fileinfo);
        }

        public FileInfo GetFileInfoByID(int id)
        {
            return fileinforepository.GetFileInfoByID(id);
        }

        public IQueryable<FileInfo> FindALLFileInfo()
        {
            return fileinforepository.FindALLFileInfo();
        }
    }
}
